package ee.ts022.tuum.dao;

import java.util.List;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import ee.ts022.tuum.domain.Contract;

@Repository
public class ContractDaoImpl extends DomainDao implements ContractDao {

	public ContractDaoImpl() {
		super(Contract.class);
	}

	@Transactional
	@Override
	public List<Contract> getAll() {
		return super.getAllDomain();
	}

	@Transactional
	@Override
	public Contract get(int id) {
		return super.getDomain(id);
	}

	@Transactional
	@Override
	public boolean save(Contract domain) {
		return super.saveDomain(domain);
	}

	@Override
	public boolean insert(Contract domain) {
		return super.insertDomain(domain);
	}

	@Override
	public boolean delete(Contract domain) {
		return super.deleteDomain(domain);
	}
}
